package java8.interface_new;

/**
 * Created by fangjicai on 2020/6/6.
 */
public interface Formula {
    double calculate(int a);
    //可以有默认实现，只需加default即可
    default double sqrt(int a){
        return Math.sqrt(a);
    }
}
